package com.javafx.application;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.layout.*;
import javafx.stage.Stage;
import javafx.scene.layout.*;
import javafx.scene.paint.*;
import javafx.scene.text.*;
import javafx.geometry.*;
import javafx.scene.layout.*;
import javafx.scene.shape.*;
import javafx.scene.paint.*;
import javafx.scene.*;
import java.io.*;
import javafx.scene.image.*;

public class Main8 extends Application {

    // launch the application 
    public void start(Stage stage)
    {

        try {

            stage.setTitle("Split Pane");

            SplitPane split_pane = new SplitPane();


            for (int i = 1; i < 5; i++) {

                split_pane.getItems().add(new Label("\tLabel no "
                        + i + "\t"));
            }

            Scene scene = new Scene(split_pane, 500, 300);

            stage.setScene(scene);

            stage.show();
        }

        catch (Exception e) {

            System.out.println(e.getMessage());
        }
    }

    // Main Method 
    public static void main(String args[])
    {

        // launch the application 
        launch(args);
    }
}